#include <stdio.h>
#define MAX 32
int top = -1;
int arr[MAX]={0};
void Push(int x)
{
	top++;
	if(top==MAX-1)
	{
		printf("Error:stark size is unenough!\n");
		return;
	}
	arr[top]=x;
}
void Pop()
{
	if(top==-1)
	{
		printf("Error:No element can to pop!\n");
		return;
	}
	top--;
}
void Print()
{
	printf("Strak: ");
	for(int a = 0;a<=top;a++)
		{
			printf("%d ",arr[a]);
		}
		printf("\n");
}
int Top()
{
	return arr[top];
}
int IsEmpty()
{
	if(top==-1)
	return 1;
	else
	return 0;
}
int main(void)
{
	Push(7);
	Push(2);
	Push(5);
	Print();
	Pop();
	Print();
	return 0;
}
